using System;
using System.Collections.Generic;
using System.Text;
namespace SSG {
	public class Validation {
		public static bool IsDateTime(string sDateTime) {
			DateTime mock;
			return DateTime.TryParse(sDateTime,out mock);
		}
	}
	class Utils {
		public static string EscapeKeywords(string tableName) {
			if(tableName.IndexOfAny(new char[] { ' ','-','~','.' })!=-1||char.IsDigit(tableName[0])||Settings.Keywords.Contains(tableName.ToLower()))
				return string.Format("[{0}]",tableName);
			return tableName;
		}
	}
}
